function getUrlVars(){ 
    var vars = [], hash; 
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); 
    for(var i = 0; i < hashes.length; i++) { 
        hash = hashes[i].split('='); 
        vars.push(hash[0]); 
        vars[hash[0]] = hash[1]; 
    } 
    return vars; 
} 

function getUrlVar(name){ 
    return getUrlVars()[name]; 
} 
// 获取 start,如果start存在则将其转为int类型，不存在则表示在第1页 
var start = getUrlVar('start'); 
start = start? parseInt(start): 0; 
function addFloor(selector){
    $(selector).append(function(n){return '<span style="float:right;margin-right:15px";>'+ (n+1+start) +' 楼</span>'});
}
// 是否为小站论坛
var isSite = window.location.href.indexOf('http://site.douban.com/');
if (window.location.href.match('http://site.douban.com/widget/board/')==null){
addFloor('.author')? isSite == 0 : addFloor('h4'); 
}
